<div class="form collapsible">
	<h2><?php echo $this->lang->line('common_filter'); ?></h2><?php

echo $open_tag;

foreach ($inputs as $key => $config) {
	
	?><div class="item<?php
	if (!empty($config['required'])) { echo ' required'; }
	if (!empty($config['error'])) { echo ' error'; }
	?>"><?php
	if (!empty($config['label'])) { ?><div class="label"><?php echo $config['label']; ?></div><?php }
	?><div class="input"><?php echo $config['input']; ?></div><?php
	if (!empty($config['error'])) { ?><div class="errorbox"><?php echo $config['error']; ?></div><?php }
	if (!empty($config['tip'])) { ?><div class="tip"><?php echo $config['tip']; ?> </div> <?php } ?>
	</div><?php
}

echo $close_tag;
?></div>